import requestTypes from '../common';

// 法律清单列表
const getRegulationList = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalCode/QueryPageList',
		method: 'get',
		params: parameter,
	});
};
//  提交法律清单列表
const postRegulation = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalCode/Add',
		method: 'post',
		data: parameter,
		multiPartFormData: true,
	});
};
//修改法律清单
const postChangeRegulation = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalCode/Update',
		method: 'post',
		data: parameter,
		multiPartFormData: true,
	});
};

//删除法律清单
const postDeleteRegulation = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalCode/Delete',
		method: 'post',
		data: parameter,
	});
};
 export { getRegulationList, postRegulation, postChangeRegulation,postDeleteRegulation };
